package com.dao.c.backend.controller;

import com.dao.c.backend.common.CommonResult;
import com.dao.c.backend.common.ImageInfo;
import com.dao.c.backend.entity.Model;
import com.dao.c.backend.service.IModelService;
import com.dao.c.backend.utils.FileUploadUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 张幸晔
 * @since 2025-02-22
 */
@RestController
@RequestMapping("/model")
// @CrossOrigin(allowedHeaders = "Authorization",exposedHeaders =
// "Authorization")
public class ModelController {
    @Autowired
    private IModelService modelService;

    @RequestMapping("/list/mid")
    public CommonResult modelListMid(Model model) {
        return modelService.modelListMid(model);
    }

}
